<template>
  <Todo />
</template>

<script>
import Todo from './views/TodoList'
export default {
  components: {
    Todo
  },
  mounted() {
    // 注册事件，用于接收
    this.$bus.$on('heihei', (n) => {
      console.log(n)

      console.log(this)
    })

    setTimeout(() => {
      // 发送数据
      this.$bus.$emit('haha', 'ok yes, no problem...')
    }, 5000)
  }
}
</script>
